<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<script type="text/javascript" src="__STATIC__/js/jquery-1.7.2.min.js">
	</script>
	<script>
		var ajaxCity = "{|U:'ajaxCity'}";
		var ajaxDist = "{|U:'ajaxDist'}";
		var defaultAddr = "{|U:'ReceiveAddr/defaultAddr'}";
		var editAddr = "{|U:'ReceiveAddr/ajaxEditAddr'}";
		var subEdit = "{|U:'ReceiveAddr/subEdit'}";
		var addAddr = "{|U:'ReceiveAddr/addAddr'}";
		var loading = "__STATIC__/Img/loading.gif";
	</script>
	<script type="text/javascript" src="__STATIC__/js/hdjs.min.js"></script>
	<link rel="stylesheet" href="__STATIC__/css/hdjs.css" />
	<link rel="stylesheet" href="__VIEW__/css/confirm.css" />
	<script type="text/javascript" src="__VIEW__/js/shopConfirm.js"></script>
	<script type="text/javascript" src="__VIEW__/js/city.js"></script>
	<title>购物定确认页面</title>
</head>
<body>
	<div id="content">
		<!--头部-->
		<include file="__VIEW__/Public/cartHead.html" />
		<!--头部结束-->
		
		<!--内容-->
		<div id="confirmContent">
			<!--当前位置面包屑-->
			<div class="location">
				<a href="" class="onemyshopcart" style="color:#333333">1.我的购物车</a>
				<span class="onemyshopcart">2.填写核对信息单</span>
				<span class="onemyshopcart" style="color:#333333" >3.成功提交订单</span>
			</div>
			<!--确认定单主体-->
			<div class="confirmAdds">
				<!--收货地址-->

				<div class="takAddr">
					<h3>
						收货地址：
					</h3>
					<foreach from="$takeAddr" key="$key" value="$value">
					<if value="$value['is_default']==1">
					<div class="myaddr">
						<span class="addr">{$value.address}</span>
						<span class="zipcode">{$value.re_zipcode}</span>
						<span class="name">({$value.re_name} 收)</span>
						<span class="telphone">{$value.re_phone}</span>
					</div>
					</if>
					</foreach>
					<a href="javascript:;" class="changeAddr">[修改]</a>
				</div>
				<div class="otheraddr">
						<ul>
							<foreach from="$takeAddr" key="$k" value="$v">
							<li <if value="$v['is_default']==1">class="isdefault"</if> reid="{$v.reid}">
								<input type="radio" style="float:left;margin-top:10px;" name="selectAddr"  value="{$v.reid}" <if value="$v['is_default']==1">checked="checked"</if> />
								<div class="myaddr">
									<span class="addr">{$v.address}</span>
									<span class="zipcode">{$v.re_zipcode}</span>
									<span class="name">({$v.re_name} 收)</span>
									<span class="telphone">{$v.re_phone}</span>
								</div>
								<div class="btn">
									<if value="$v['is_default']!=1">
										<a href="javascript:;" class="is_default">设置为默认收货地址</a>
									</if>
									<a href="javascript:;" style="color:#333;" class="editAddr" >编辑</a>
								</div>
							</li>
							</foreach>
						</ul>
						<!--添加新的收货地址-->
						<div class="addAddress" >
							<form action="javascript:;" id="addAddressForm" method="post">
								<input type="hidden" name="uid" value="{$hd['session']['uid']}"  />
								<div class="form-group">
									<label><b>*</b>收货人:</label>
									<input class="inputText" type="text" name="re_name" placeholder="请输入收货人姓名"  />
								</div>
								<div class="form-group">
									<label><b>*</b>手机号:</label>
									<input class="inputText" type="text" name="re_phone" placeholder="请输入收货人手机号"  />
								</div>
								<div class="form-group">
							<label for="truename"><span style="color:#B81B22">*</span>地 区：</label>
							<div class="se" style="overflow: hidden;padding-left:20px;">
								<!--省份选择-->
								<select id="province" name="prov" style="opacity: 1;border:1px solid cornflowerblue;">
									<option value="0" selected="selected">请选择/省份</option>
									<foreach from="$prov" key="$key" value="$val">
										<option value="{$val.provid}" <if value="$area[0]==$val.provid">selected="selected"</if>>{$val.provname}</option>
									</foreach>
								</select>
								<!--城市 -->
								<select style="opacity: 1;border:1px solid cornflowerblue;" name="city" id="city">
									<option value="0" selected="selected">请选择/市级</option>
									<foreach from="$citys" key="$k" value="$v">
										<option value="{$v.cityid}" <if value="$area[1]==$v.cityid">selected="selected"</if>>{$v.cityname}</option>
									</foreach>
								</select>
								<!--地区-->
								<select name="dist" style="opacity: 1;border:1px solid cornflowerblue;"  id="dist">
									<option value="0" selected="selected">请选择/县</option>
									<foreach from="$dists" key="$k" value="$v">
										<option value="{$v.distid}" <if value="$area[2]==$v.distid">selected="selected"</if>>{$v.dist_name}</option>
									</foreach>
								</select>
								<!--保存所有在地区隐藏表单-->
								<input type="hidden" name="addarea" value="{$userInfo.addarea}" />
							</div>
						</div>
								<div class="form-group">
									<label><b>*</b>详细地址:</label>
									<input class="inputText" type="text" name="re_address" style="width:500px" placeholder="请输入收货人详细地址"  />
								</div>
								<div class="form-group">
									<label><b>*</b>邮政编码:</label>
									<input class="inputText" type="text" name="re_zipcode" placeholder="请输入邮政编码"  />
								</div>

							</form>
						</div>
						<div class="gotoAddr">
							<a href="javascript:;" id="editBtn">修改</a>
							<a href="javascript:;" id="addrThis">配送到这个地址</a>
							<a href="javascript:;" id="newAddr">新增地址</a>
						</div>
				</div>
				<!--收货方式-->
				<div class="takAddr">
					<h3>
						配送方式：
					</h3>
					<div class="myaddr">
						<span class="express">快递</span>
						<span class="zipday">周一至周日</span>
						<span class="ziptype">假日均可配送</span>
					</div>
					<a href="" class="changeAddr"><!--[修改]--></a>
				</div>
				<!--支付方式-->
				<div class="takAddr">
					<h3>
						支付方式：
					</h3>
					<div class="myaddr">
						<span class="payway">在线支付</span>
					</div>
					<a href="" class="changeAddr"><!--[修改]--></a>
				</div>
			</div>
			<!--确认定单主体结束-->
			<div class="orderof">
				<div class="title">
					<h2>
						商品清单
					</h2>
					<a href="{|U:'Cart/index'}" class="callshopcart">回到购物车，修改产品>></a>
				</div>
				<!--详细订单-->
				<div class="orderofList">
					<table width="950">
						<tr class="title" style="background:#7A7F89;">	 	 	 
							<th width="300">商品名称</th>
							<th>尺码</th>
							<th></th>
							<th>单价</th>
							<th>数量</th>
							<th></th>
							<th>小计</th>
						</tr>
						<foreach from="$cartGoods.goods" key="$key" value="$v">
						<tr align="center">
							<td align="left">
								{$v.name}{$v.options.combinestr.0}
							</td>
							<td>
								{$v.options.combinestr.1}
							</td>
							<td>
								
							</td>
							<td>
								￥{$v.price} 
							</td>
							<td>
								{$v.num}
							</td>
							<td>
								
							</td>
							<td>
								￥{$v.total} 
							</td>
						</tr>
						</foreach>
					</table>
					<!--底部结算-->
				<div class="balance">
					商品金额小计:<span class="proCountPrice">￥{$countGoods.countMoney}</span>
					   +  
					   运费:￥<span class="kuaidi">0.00</span>
					 =  
					  应付: <strong style="color:#B80000">￥</strong> <span class="sum">{$countGoods.countMoney}</span>
				</div>
				<!--底部结算-->
				</div>
			</div>
			<div class="bottombalance">
				<form action="{|U:'Cart/subOrder'}" method="post">
					<!--结算大写-->
					<div class="countBig">
						
						<foreach from="$selectGoods" key="$goodsk" value="$goodsv">
							<input type="hidden" name="orderList[]" value="{$goodsv}" />
						</foreach>
						<!--收货地址ID-->
						<foreach from="$takeAddr" key="$k" value="$v">
							<if value="$v['is_default']==1"><input type="hidden" name="addrid" value="{$v.reid}" /></if>
						</foreach>
						您共需要为订单支付：
						<span class="countPriCount">￥{$countGoods.countMoney}</span>
						<input type="hidden" name="goods_count_price" value="{$countGoods.countMoney}" />
					</div>
					<!--结算按钮-->
					<div class="countBtn">
						<input type="submit" class="submit" value="提交订单" />
					</div>
					</form>
				</div>
				</form>
		</div>
		<!--内容结束-->
		<!--页脚-->
		<div id="foot">
			<div class="copyright">
				Copyright 2007 - 2015 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11010102000579号 出版物经营许可证新出发京批字第直110138号
			</div>
			<div class="gsjImg">
				<a href="" ><img src="__VIEW__/img/cert-redlogo.png" alt="" /></a>
				<a href="" ><img src="__VIEW__/img/cert-costumeorg.gif" alt="" /></a>
				<a href="" ><img src="__VIEW__/img/cert-wsjybzzx.png" alt="" /></a>
			</div>
		</div>
		<!--页脚结束-->
	</div>
</body>
</html>